package cn.zjh.base.utils;

import lombok.Data;

/**
* @Description: 封装操作结果的工具类
* @Author: Mr.Zhang
* @Version: 1.0
* @Date:  2022/6/24 13:01
*/

@Data
public class AjaxResult {

    private Boolean success = true;

    private String message = "操作成功";

    private Object resultObj;


    public static AjaxResult me(){
        return new AjaxResult();
    }

    public AjaxResult setSuccess(Boolean success) {
        this.success = success;
        return this;
    }

    public AjaxResult setMessage(String message) {
        this.message = message;
        return this;
    }

    public AjaxResult setResultObj(Object resultObj) {
        this.resultObj = resultObj;
        return this;
    }
}
